home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 2
/
AACD 2.iso
/
AACD
/
Magazine
/
GraphicsCards
/
StormMesa
/
src
/
teximage.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-02-04
|
7KB
|
188 lines
/* $Id: teximage.h,v 3.0 1998/01/31 21:04:38 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Version: 3.0
* Copyright (C) 1995-1998 Brian Paul
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* $Log: teximage.h,v $
* Revision 3.0 1998/01/31 21:04:38 brianp
* initial rev
*
*/
#ifndef TEXIMAGE_H
#define TEXIMAGE_H
#include "types.h"
/*** Internal functions ***/
extern struct gl_texture_image *gl_alloc_texture_image( void );
extern void gl_free_texture_image( struct gl_texture_image *teximage );
extern struct gl_image *
gl_unpack_texsubimage( GLcontext *ctx, GLint width, GLint height,
GLenum format, GLenum type, const GLvoid *pixels );
extern struct gl_image *
gl_unpack_texsubimage3D( GLcontext *ctx, GLint width, GLint height,GLint depth,
GLenum format, GLenum type, const GLvoid *pixels );
extern struct gl_texture_image *
gl_unpack_texture( GLcontext *ctx,
GLint dimensions,
GLenum target,
GLint level,
GLint internalformat,
GLsizei width, GLsizei height,
GLint border,
GLenum format, GLenum type,
const GLvoid *pixels );
extern struct gl_texture_image *
gl_unpack_texture3D( GLcontext *ctx,
GLint dimensions,
GLenum target,
GLint level,
GLint internalformat,
GLsizei width, GLsizei height, GLsizei depth,
GLint border,
GLenum format, GLenum type,
const GLvoid *pixels );
extern void gl_tex_image_1D( GLcontext *ctx,
GLenum target, GLint level, GLint internalformat,
GLsizei width, GLint border, GLenum format,
GLenum type, const GLvoid *pixels );
extern void gl_tex_image_2D( GLcontext *ctx,
GLenum target, GLint level, GLint internalformat,
GLsizei width, GLint height, GLint border,
GLenum format, GLenum type,
const GLvoid *pixels );
extern void gl_tex_image_3D( GLcontext *ctx,
GLenum target, GLint level, GLint internalformat,
GLsizei width, GLint height, GLint depth,
GLint border,
GLenum format, GLenum type,
const GLvoid *pixels );
/*** API entry points ***/
extern void gl_TexImage1D( GLcontext *ctx,
GLenum target, GLint level, GLint internalformat,
GLsizei width, GLint border, GLenum format,
GLenum type, struct gl_image *teximage );
extern void gl_TexImage2D( GLcontext *ctx,
GLenum target, GLint level, GLint internalformat,
GLsizei width, GLsizei height, GLint border,
GLenum format, GLenum type,
struct gl_image *teximage );
extern void gl_TexImage3DEXT( GLcontext *ctx,
GLenum target, GLint level, GLint internalformat,
GLsizei width, GLsizei height, GLsizei depth,
GLint border,
GLenum format, GLenum type,
struct gl_image *teximage );
extern void gl_GetTexImage( GLcontext *ctx, GLenum target, GLint level,
GLenum format, GLenum type, GLvoid *pixels );
extern void gl_TexSubImage1D( GLcontext *ctx,
GLenum target, GLint level, GLint xoffset,
GLsizei width, GLenum format, GLenum type,
struct gl_image *image );
extern void gl_TexSubImage2D( GLcontext *ctx,
GLenum target, GLint level,
GLint xoffset, GLint yoffset,
GLsizei width, GLsizei height,
GLenum format, GLenum type,
struct gl_image *image );
extern void gl_TexSubImage3DEXT( GLcontext *ctx,
GLenum target, GLint level,
GLint xoffset, GLint yoffset, GLint zoffset,
GLsizei width, GLsizei height, GLsizei depth,
GLenum format, GLenum type,
struct gl_image *image );
extern void gl_CopyTexImage1D( GLcontext *ctx,
GLenum target, GLint level,
GLenum internalformat,
GLint x, GLint y,
GLsizei width, GLint border );
extern void gl_CopyTexImage2D( GLcontext *ctx,
GLenum target, GLint level,
GLenum internalformat, GLint x, GLint y,
GLsizei width, GLsizei height,
GLint border );
extern void gl_CopyTexSubImage1D( GLcontext *ctx,
GLenum target, GLint level,
GLint xoffset, GLint x, GLint y,
GLsizei width );
extern void gl_CopyTexSubImage2D( GLcontext *ctx,
GLenum target, GLint level,
GLint xoffset, GLint yoffset,
GLint x, GLint y,
GLsizei width, GLsizei height );
extern void gl_CopyTexSubImage3DEXT( GLcontext *ctx,
GLenum target, GLint level,
GLint xoffset, GLint yoffset,
GLint zoffset,
GLint x, GLint y,
GLsizei width, GLsizei height );
#endif